package com.wjh.enums;

public enum AppHttpCodeEnum {
    // 成功
    SUCCESS(200,"操作成功"),
    // 登录
    NEED_LOGIN(401,"需要登录后操作"),
    NEED_NAME(402,"名称不能为空"),
    NEED_CONTENT(402,"搜索内容不能为空"),
    NEED_IMAGE(402,"图片不能为空"),
    NEED_TYPE(402,"类型不能为空"),
    NEED_PRICE(402,"价格不能为空"),
    NOT_HEAD_CLASS(405,"班级信息为空"),
    NOT_HEAD_NUMBER(405,"学号信息为空"),
    NOT_HEAD_CATEGORY(405,"方向信息为空"),
    NOT_NAME(405,"姓名信息为空"),
    NOT_IMAGE(405,"学生证图片为空"),
    ARTICLE_CONTENT_NOTNULL(402,"文章内容不能为空"),
    ARTICLE_TITLE_NOTNULL(402,"文章标题不能为空"),
    ARTICLE_TAG_NOTNULL(402,"文章分类不能为空"),
    NEED_PARAMETER_NOT(402,"参数未传递"),
    IS_EXIT(405,"您已经申请过了，等待工作人员联系"),
    DELETE_USER_NOTNULL(405,"删除的用户Id不能为空"),

    NEED_STUDY_NOT(402,"获奖学生不能为空"),
    NEED_INSTRUCTOR_NOT(402,"指导老师不能为空"),
    NEED_CERTIFICATE_NOT(402,"证书信息不能为空"),
    CERTIFICATE_NAME_NOT(402,"获奖名称不能为空"),
    NO_OPERATOR_AUTH(403,"无权限操作"),
    SYSTEM_ERROR(500,"出现错误"),
    USER_QQ_MAX_MIN(502,"QQ账号必须位6到10位"),
    USERNAME_EXIST(501,"用户名已存在"),
    PHONENUMBER_EXIST(502,"手机号已存在"), EMAIL_EXIST(503, "邮箱已存在"),
    REQUIRE_USERNAME(504, "必需填写用户名"),
    CONTENT_NOT_NULL(506,"内容不能为空"),
    FILE_TYPE_ERROR(507,"文件类型错误，请上传png或jpg文件"),
    USER_INFO_NOTNULL(507,"用户信息不能为空"),
    USER_NICKNAME_NOTNULL(407,"用户昵称不能为空"),
    USER_AVATAR_NOTNULL(407,"用户头像不能为空"),
    USER_QQ_NOTNULL(407,"用户QQ不能为空"),
    USER_WX_NOTNULL(407,"用户微信不能为空"),
    USER_EMAIL_NOTNULL(407,"用户邮箱不能为空"),
    PLEASE_AGAIN_LOGIN(402,"请先登录"),
    USER_ID_NOTNULL(402,"学号信息不能为空"),
    ID_NOTNULL(402,"ID信息不能为空"),
    LOGIN_ERROR(505,"用户名或密码错误"),
    STAFF_SEX_ERROR(44111,"快递员性别不能为空"),
    STAFF_PHONE_ERROR(4412,"快递员手机号不能为空"),
    STAFF_FETCH_GOODS_NUMBER_NOTNULL(44116,"取件码不能为空"),
    STAFF_STAFF_NAME_NOTNULL(44117,"快递员姓名不能为空"),
    STAFF_STAFF_STATE_NOTNULL(44118,"快递状态信息不能为空"),
    STAFF_PREDICT_TIME_NOTNULL(44119,"预计送达时间不能为空"),
    LEAVE_RATIFY_STATE_NOTNULL(44120,"批准请假状态不能为空或者错误"),
    STAFF_ORDER_NUMBER_NOTNULL(44114,"订单号码为空"),
    STAFF_USER_PHONE_NOTNULL(44115,"取件人姓名不能为空"),
    STAFF_ADDRESS_NOTNULL(44115,"收货地址不能为空"),
    STAFF_AGE_ERROR(44113,"年龄不能为空");
    int code;
    String msg;

    AppHttpCodeEnum(int code, String errorMessage){
        this.code = code;
        this.msg = errorMessage;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


}
